package distributions;

import java.io.IOException;

public class ExponentialStream extends RandomStream
{
  private double Mean;

  public ExponentialStream(double paramDouble)
  {
    this.Mean = paramDouble;
  }

  public ExponentialStream(double paramDouble, int paramInt)
  {
    this.Mean = paramDouble;
    for (int i = 0; i < paramInt * 1000; i++)
      Uniform();
  }

  public ExponentialStream(double paramDouble, int paramInt, long paramLong1, long paramLong2)
  {
    super(paramLong1, paramLong2);
    this.Mean = paramDouble;
    for (int i = 0; i < paramInt * 1000; i++)
      Uniform();
  }

  public double getNumber()
    throws IOException, ArithmeticException
  {
    double d = Uniform();
    d = Math.log(d);
    return -this.Mean * d;
  }
}

/* Location:           /tmp/dlpjava/dlpjava.jar
 * Qualified Name:     distributions.ExponentialStream
 * JD-Core Version:    0.6.0
 */